Continually burnt by @reply_to

October 10th, 2007

This has bitten me a number of times. When sending mail through ActionMailer/rails, @reply_to is not a valid way to set the reply to address. You must

@headers["reply-to"] = reply_address

This just came up in a project where there was existing code that had @replyto = replyaddress. Until today, no one really cared that the reply-to field wasn’t being set since it was always just the sender. Then today I happily come along and changed it to something other than the sender. Took me too long to figure this out.

3 Responses to “Continually burnt by @reply_to”

  1. clint troxel Says:

    Thanks for the reminder. Saved me some time!

  2. john clancy Says:

    Really helpful. It's little posts like this that save a person hours of hunting.

  3. ernesto Says:

    thanks for the hint! it saved me a lot of time..

    • e

Leave a Reply